package com.power.powercash;

import java.util.List;
import javax.swing.DefaultCellEditor;
import javax.swing.JComboBox;

/**
 *
 * @author Juno
 */
public class ComboBoxCellEditor
{

  private List list;


  public ComboBoxCellEditor()
  {
    list = null;
  }


  public ComboBoxCellEditor(List l)
  {
    list = l;
  }


  public List getList()
  {
    return list;
  }


  public void setList(List l)
  {
    list = l;
  }


  public DefaultCellEditor getCellEditor()
  {
    return new DefaultCellEditor(new JComboBox(list.toArray()));
  }

}
